Optimal. Leaf size=31 \[ \frac{a^2 \log (a+b x)}{b^3}-\frac{a x}{b^2}+\frac{x^2}{2 b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0334421, antiderivative size = 31, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.091 \[ \frac{a^2 \log (a+b x)}{b^3}-\frac{a x}{b^2}+\frac{x^2}{2 b} \]
Antiderivative was successfully verified.
[In] Int[x^2/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{a^{2} \log{\left (a + b x \right )}}{b^{3}} + \frac{\int x\, dx}{b} - \frac{\int a\, dx}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00474759, size = 31, normalized size = 1. \[ \frac{a^2 \log (a+b x)}{b^3}-\frac{a x}{b^2}+\frac{x^2}{2 b} \]
Antiderivative was successfully verified.
[In] Integrate[x^2/(a + b*x),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.003, size = 30, normalized size = 1. \[ -{\frac{ax}{{b}^{2}}}+{\frac{{x}^{2}}{2\,b}}+{\frac{{a}^{2}\ln \left ( bx+a \right ) }{{b}^{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2/(b*x+a),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.34351, size = 39, normalized size = 1.26 \[ \frac{a^{2} \log \left (b x + a\right )}{b^{3}} + \frac{b x^{2} - 2 \, a x}{2 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(b*x + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.190455, size = 39, normalized size = 1.26 \[ \frac{b^{2} x^{2} - 2 \, a b x + 2 \, a^{2} \log \left (b x + a\right )}{2 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(b*x + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.07131, size = 26, normalized size = 0.84 \[ \frac{a^{2} \log{\left (a + b x \right )}}{b^{3}} - \frac{a x}{b^{2}} + \frac{x^{2}}{2 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2/(b*x+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.224822, size = 41, normalized size = 1.32 \[ \frac{a^{2}{\rm ln}\left ({\left | b x + a \right |}\right )}{b^{3}} + \frac{b x^{2} - 2 \, a x}{2 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^2/(b*x + a),x, algorithm="giac")
[Out]